package org.opensourceway.sbom.model.cyclonedx;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

public class Vulnerability {
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String bomRef;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String id;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private VulnerabilitySource source;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Rating> ratings;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String description;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<VulnerabilityAffect> affects;

    public Vulnerability() {
    }

    public String getBomRef() {
        return bomRef;
    }

    public void setBomRef(String bomRef) {
        this.bomRef = bomRef;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public VulnerabilitySource getSource() {
        return source;
    }

    public void setSource(VulnerabilitySource source) {
        this.source = source;
    }

    public List<Rating> getRatings() {
        return ratings;
    }

    public void setRatings(List<Rating> ratings) {
        this.ratings = ratings;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<VulnerabilityAffect> getAffects() {
        return affects;
    }

    public void setAffects(List<VulnerabilityAffect> affects) {
        this.affects = affects;
    }
}
